﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL.Page;
using ZF.BLL;
using GCELibrary.Current;
namespace ZF.WS.service
{


    public partial class bopcontrol : BLL.UserControls.UserControl
    {
        public BConfig BConfig { get { return SiteInfo.SystemConfig.BConfig; } }
    }
    public partial class bop :PageBase
    {
        [PageArgument(Key = "key", DefaultValue = null)]
        public string Key { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Key != null)
                {
                    foreach (View view in this.mvList.Views)
                    {
                        if (view is BLL.UserControls.View && ((BLL.UserControls.View)view).Key.EqIgnoreCase(this.Key))
                        {
                            this.mvList.SetActiveView(view);
                            break;
                        }
                    }

                }
            }

        }
        
    }
}
